<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopSalesmanWithdrawal extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_salesman_withdrawal', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('shopid')->comment('商家id');
            $table->decimal('accountamount',16,2)->comment('结款金额');
            $table->dateTime('accounttime')->comment('结款时间');
            $table->string('accountmonth',64)->default('')->comment('结算月份');
            $table->string('detailid')->comment('详情id');
            $table->integer('registernum')->default(0)->comment('注册个数');
            $table->integer('validordernum')->default(0)->comment('有效订单个数');
            $table->decimal('balance', 16,2)->comment('提现后的余额');
            $table->integer('adminid')->comment('操作人');
            $table->integer('status')->default(0)->comment('操作人');
            $table->string('remark')->default('')->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
